package com.wxy.ej.flow.modules.act.dto;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.Date;
import java.util.Map;

@ApiModel(description = "TaskDto：当前要做的工作")
@Data
@ToString
@EqualsAndHashCode
public class TaskDto {
    private static final long serialVersionUID = 1L;

    public String id;
    public String name;
    public String description;
    public String priority;
    public String owner;
    public String assignee;
    public String processInstanceId;
    public String executionId;
    public String processDefinitionId;
    public String createTime;
    public String taskDefinitionKey;
    public String dueDate;
    public String category;
    public String parentTaskId;
    public String tenantId;
    public String formKey;
    public Date claimTime;

    public String userId;


    /**
     * Returns the local task variables if requested in the task query
     */
    public Map<String, Object> taskLocalVariables;

    /**
     * Returns the process variables if requested in the task query
     */
    public Map<String, Object> processVariables;

    // 发送的form数据
    public String formData;

    // ======
    private String activityId;
    private String activityName;
    private String startDate;
    private String endDate;

    //
    private Integer approval;
}
